package cn.base.demo2;

import java.util.Scanner;

public class Code07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入您的会员卡号：");
        int number = sc.nextInt();
        if (number >= 1000 && number <= 9999) {
            int g = number % 10;
            int s = number / 10 % 10;
            int b = number / 100 % 10;
            int q = number / 1000;
            int num = g + s + b + q;
            if (num > 20) {
                System.out.println(number + "为幸运客户");
            }
        }
    }
}
